﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace Rise.Cenas
{
    class CenaCreditos:Cenas.Cena
    {
        public CenaCreditos (ContentManager Content, GameWindow Window)
            :base()
        {
           this.Window = Window;
           fundo = Content.Load<Texture2D>("telacred");
        }
        
        public void Update(GameTime gameTime)
        {
            if (Game1.teclado_atual.IsKeyDown(Keys.Escape))
            {
                Cenas.CenaManager.cena_atual = Cenas.CenaManager.Cenas.MENU;
            }

        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(fundo, new Rectangle(0, 0, Window.ClientBounds.Width, Window.ClientBounds.Height), Color.White);
        }
    }
}
